package first.group.ssh.packet.reader;

import first.group.ssh.packet.PacketParser;

import java.nio.ByteBuffer;

public class IntegerReader {
    public static Integer readInteger(ByteBuffer buffer) {
        if (!PacketParser.bufferRemains(buffer, 4)) {
            return null;
        }
        return buffer.getInt();
    }
}
